home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
snip9707.zip
/
UNISTD.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-07-05
|
812b
|
40 lines
/* +++Date last modified: 05-Jul-1997 */
/*
** UNISTD.H - Posix-compliant header for porting code to DOS
** systems which lack this standard header file.
**
** public domain by Bob Stout
*/
#ifndef __UNISTD_H /* Use same macro as Symantec to avoid collision */
#define __UNISTD_H
#include <io.h>
#include <process.h>
#include <stdio.h>
#include "stat.h"
#ifndef F_OK
#define F_OK 0 /* File exists */
#define X_OK 1 /* File is executable */
#define W_OK 2 /* File is writable */
#define R_OK 4 /* File is readable */
#endif
#undef dirent
#undef DIR
#if !defined(__TURBOC__)
#include <direct.h>
#else
#include <dir.h>
#endif
#define dirent DIRENT_
#define DIR DIR_
#endif /* __UNISTD_H */